package com.uniapp.java.uniappjava.pojo;

import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;


/**
 * @author lsy_server
 */
@Data
@Builder
@Document(collection = "user")
public class User {
    @Id
    private String id;
    @Indexed(unique = true)
    private String userName;
    private String nickName;
    private String password;
    private Byte avatar;
    private Boolean isAuthor = false;
    private Boolean isVip = false;
}
